﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace ProdeBackEnd.Model
{
    [DataContract(Namespace = "ProdeBackEnd.Model")]
    public class UserResult
    {
        [DataMember]
        private User user;

        [DataMember]
        private Match match;

        [DataMember]
        private int VTeam1;

        [DataMember]
        private int VTeam2;

        [DataMember]
        private int points;

        public UserResult(User user, Match match, int VTeam1, int VTeam2, int points)
        {
            this.user = user;
            this.match = match;
            this.VTeam1 = VTeam1;
            this.VTeam2 = VTeam2;
            this.points = points;
        }

        public Match getMatch()
        {
            return this.match;
        }

        public User getUser()
        {
            return this.user;
        }

        public int getVTeam1()
        {
            return this.VTeam1;
        }

        public int getVTeam2()
        {
            return this.VTeam2;
        }

        public int getPoints()
        {
            return this.points;
        }

        public void setMatch(Match match)
        {
            this.match = match;
        }

        public void setUser(User user)
        {
            this.user = user;
        }

        public void setVTeam1(int VTeam1)
        {
            this.VTeam1 = VTeam1;
        }

        public void setVTeam2(int VTeam2)
        {
            this.VTeam2 = VTeam2;
        }

        public void setPoints(int points)
        {
            this.points = points;
        }

        public void addPoints(int points)
        {
            this.points = this.points + points;
        } 
    }
}